#ifndef UI_BASE_H_
#define UI_BASE_H_

#include "entity.h"
#include "fontmaterial.h"

class CUIBase : public CEntity
{
	
protected:
	
	CFontMaterial * m_FontMat;
	
	Vector2D m_Padding;
	
public:
	
	CUIBase() : CEntity(), m_FontMat( NULL )
	{
		
	}
	
	void SetPadding( double x, double y )
	{
		
		m_Padding.SetXY( x, y );
		
	}

	virtual void Input( SDL_Event &, Uint8 * );
	virtual void Think();
	virtual void Draw();
	
	void SetFont( CFontMaterial * font )
	{
		
		m_FontMat = font;
		
	}
	
	void SetMaterial( CMaterial * mat )
	{
	
		AddSprite( mat, true );
		
	}
	
};

#endif